{	Problem: http://codeforces.ru/problemset/problem/40/A
	Verdict: Accepted
}
var x,y:longint; k:extended;
begin
read(x,y);
k:=sqrt(x*x+y*y);
if (trunc(k)=k) or (odd(trunc(k)) and (x*y<0)) or ((not odd(trunc(k))) and (x*y>0)) then write('black') else write('white');
readln(x);
end.